Skip to content

Add a /test skill to run singular tests or per module tests#5111

Merged
adinauer merged 2 commits intomainfrom
feat/ai-test-skill
Mar 25, 2026
Merged

Add a /test skill to run singular tests or per module tests#5111
adinauer merged 2 commits intomainfrom
feat/ai-test-skill

Conversation

@adinauer
Copy link
Member

@adinauer adinauer commented Feb 23, 2026

📜 Description

💡 Motivation and Context

💚 How did you test it?

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

#skip-changelog

@github-actions
Copy link
Contributor

github-actions bot commented Feb 23, 2026

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


This PR will not appear in the changelog.


🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 23, 2026

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against e2e466e

@adinauer adinauer marked this pull request as ready for review March 5, 2026 05:07
Map modules ending in -android to testDebugUnitTest so Android library
modules like sentry-launchdarkly-android do not fall back to test.

Add AskUserQuestion to allowed-tools so interactive mode can execute the
decision prompts described in the skill under restricted tool settings.

Co-Authored-By: Claude <[email protected]>
@adinauer adinauer enabled auto-merge (squash) March 25, 2026 05:35
@adinauer adinauer merged commit 4c09f52 into main Mar 25, 2026
65 of 67 checks passed
@adinauer adinauer deleted the feat/ai-test-skill branch March 25, 2026 05:37
@sentry
Copy link

sentry bot commented Mar 25, 2026

Sentry Build Distribution

App Name App ID Version Configuration Install Page
SDK Size io.sentry.tests.size 8.36.0 (1) release Install Build

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

With a test class filter:
```bash
./gradlew ':<module>:<task>' --tests="*<filter>*" --info
```
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gradle path template breaks for nested subproject modules

Medium Severity

The Gradle command template ':<module>:<task>' doesn't account for nested subprojects. Modules under sentry-opentelemetry/ are registered in settings.gradle.kts as sentry-opentelemetry:sentry-opentelemetry-core etc., requiring the Gradle path ':sentry-opentelemetry:sentry-opentelemetry-core:test'. Using just ':sentry-opentelemetry-core:test' would cause Gradle to fail with "project not found" for all six OpenTelemetry submodules.

Additional Locations (1)
Fix in Cursor Fix in Web


1. Ensure the Python venv exists:
```bash
test -d .venv || make setupPython
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Venv existence check skips dependency installation

Low Severity

The command test -d .venv || make setupPython skips setupPython entirely when .venv already exists. The Makefile's setupPython target only gates venv creation on directory existence — it always runs pip install -r requirements.txt to ensure dependencies stay current. The Makefile's own systemTest target unconditionally depends on setupPython for this reason. This short-circuit means stale or missing Python dependencies won't be installed, causing confusing import failures when requirements.txt changes.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants